Skip to content

Conversation

@canvural
Copy link
Contributor

Follow up to #4495

In PHP 8.5 using both FILTER_THROW_ON_FAILURE and FILTER_NULL_ON_FAILURE at same time is not allowed. https://3v4l.org/Ibd4B/rfc#vgit.master_jit

Not sure about the rule level and the message.

@canvural canvural marked this pull request as ready for review November 13, 2025 14:59
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

Comment on lines +54 to +56
if ($this->filterFunctionReturnTypeHelper->hasFlag('FILTER_NULL_ON_FAILURE', $flagsType)
->and($this->filterFunctionReturnTypeHelper->hasFlag('FILTER_THROW_ON_FAILURE', $flagsType))
->yes()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should also report maybe if reportMaybe is enabled.

But I'm unsure how good those filterFunctionReturnTypeHelper::hasFlag works so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants